home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cfengine-1.5.3 / inputs / cf.solaris.example < prev    next >
Encoding:
Text File  |  1998-11-18  |  6.5 KB  |  268 lines

  1. #################################################################
  2. #
  3. # cf.solaris - for iu.hioslo.no
  4. #
  5. # This file contains solaris specific patches
  6. #
  7. #################################################################
  8.  
  9. ###
  10. #
  11. # BEGIN cf.solaris
  12. #
  13. ###
  14.  
  15. directories:
  16.  
  17.      #
  18.      # httpd/netscape want this to exist for some bizarre reason
  19.      #
  20.  
  21.       /usr/lib/X11/nls
  22.       /var/run
  23.  
  24. ################################################################
  25.  
  26. tidy:
  27.  
  28.      /usr/tmp  pattern=* age=1
  29.  
  30.    MailHub::
  31.  
  32.      /var/mail pattern=lp       age=0
  33.  
  34. #################################################################
  35.  
  36. files:
  37.  
  38.   #
  39.   # If this doesn't exist fork will not work and the
  40.   # system will not even be able to run the /etc/rc
  41.   # scripts at boottime
  42.   #
  43.  
  44.   /etc/system     o=root g=root m=644 action=touch
  45.   /usr/sbin/mount o=bin g=bin m=555 action=fixplain
  46.   /usr/sbin/ping  m=4555 action=fixplain
  47.  
  48. #############################################################
  49.  
  50. links:
  51.  
  52.    sunos_5_6::
  53.  
  54.       /usr/lib/sendmail     ->! /local/iu/mail/bin/sendmail-8.9.1-sunos5_6
  55.       /usr/sbin/sendmail    ->! /local/iu/mail/bin/sendmail-8.9.1-sunos5_6
  56.  
  57.  
  58.    sunos_5_5::
  59.  
  60.       /usr/lib/sendmail     ->! /local/iu/mail/bin/sendmail-8.9.1-sunos5_5
  61.  
  62.    any::
  63.  
  64.       /opt/gnu              ->  /local/gnu
  65.       /etc/sendmail.cf      ->! /etc/mail/sendmail.cf
  66.       /etc/services         ->! /etc/inet/services
  67.       /var/spool/mail       ->  /var/mail
  68.       /usr/bin/perl         ->  /local/bin/perl
  69.  
  70.  
  71. ##############################################################
  72.  
  73. copy:
  74.  
  75.    #
  76.    # Some standard setup files, can't link because
  77.    # machine won't boot if their not on / partition.
  78.    #
  79.  
  80.    /local/bin/tcsh dest=/bin/tcsh mode=755
  81.  
  82.    /local/iu/etc/nsswitch.standalone dest=/etc/nsswitch.conf
  83.  
  84.    /local/iu/etc/S99rc-local dest=/etc/rc2.d/S99rc-local mode=755 
  85.  
  86.  
  87. ##############################################################
  88.  
  89. disable:
  90.  
  91.     /etc/.login  type=file
  92.     /etc/aliases 
  93.     /bin/rdist
  94.  
  95.    #
  96.    # These files are ENORMOUS, don't let them fill the disk
  97.    #
  98.  
  99.    Hr00::
  100.  
  101.       /var/lp/logs/lpsched rotate=empty
  102.  
  103. #   Day1.Hr00:: # each month
  104.  
  105. #      /var/adm/wtmpx       rotate=2
  106. #      /var/adm/wtmp        rotate=2
  107. #      /var/adm/utmpx       rotate=2
  108. #      /var/adm/utmp        rotate=2
  109.  
  110.  
  111. ##############################################################
  112.  
  113. files:
  114.  
  115.     /etc/passwd        m=0644 o=root g=other action=fixplain
  116.     /etc/shadow        m=0600 o=root g=other action=fixplain
  117.     /etc/defaultrouter m=0644 o=root g=other  action=touch
  118.     /etc/inet          m=755  o=root g=other action=fixdirs
  119.     /var/adm/wtmpx     m=0664 o=adm g=adm    action=touch
  120.     /var/adm/wtmp      m=0644 o=root g=adm   action=touch
  121.     /var/adm/utmp      m=0644 o=root g=adm   action=fixplain
  122.     /var/adm/utmpx     m=0664 o=adm g=adm    action=fixplain
  123.     /tmp m=1777                              action=fixdirs
  124.     /usr/openwin/bin/xdm m=0755 o=root g=bin action=fixplain
  125.     /var/mail          m=1777 o=root g=mail  action=fixdirs
  126.  
  127.  
  128. ##############################################################
  129.  
  130. disable:
  131.  
  132.    #
  133.    # CERT security patch
  134.    #
  135.  
  136.    /usr/openwin/bin/kcms_calibrate
  137.    /usr/openwin/bin/kcms_configure
  138.    /usr/bin/admintool
  139.    /etc/rc2.d/S99dtlogin
  140.  
  141. ################################################################
  142.  
  143. shellcommands:
  144.  
  145.    AllBinaryServers.Saturday.longjob.Hr00::
  146.  
  147.       #
  148.       # Make sure the man -k / apropos data are up to date
  149.       #
  150.  
  151.       "/usr/bin/catman  -M /local/man"
  152.       "/usr/bin/catman  -M /local/X11R5/man"
  153.       "/usr/bin/catman  -M /usr/man"
  154.       "/usr/bin/catman  -M /local/gnu/man"
  155.       "/usr/bin/catman  -M /usr/openwin/share/man"
  156.       "/usr/bin/catman  -M /local/X11R5/man"
  157.       "/usr/bin/catman  -M /usr/share/man"
  158.       "/usr/bin/catman  -M /opt/SUNWspro/man"
  159.  
  160. ##############################################################
  161.  
  162. editfiles:
  163.  
  164.  
  165.   #
  166.   # Solaris configuration for extra logins
  167.   #
  168.  
  169.       { /etc/system
  170.  
  171.       AppendIfNoSuchLine "set pt_cnt=128"
  172.       }
  173.  
  174.       { /etc/netmasks
  175.  
  176.       AppendIfNoSuchLine "128.39  255.255.255.0"
  177.       }
  178.  
  179.       { /etc/defaultrouter
  180.  
  181.       AppendIfNoSuchLine "128.39.89.1"
  182.       }
  183.  
  184.       { /usr/openwin/lib/app-defaults/XConsole
  185.  
  186.       AppendIfNoSuchLine "XConsole.autoRaise: on"
  187.       }
  188.  
  189.    #
  190.    # CERT security patch for vold vulnerability
  191.    #
  192.  
  193.       { /etc/rmmount.conf
  194.  
  195.       HashCommentLinesContaining "action cdrom"
  196.       HashCommentLinesContaining "action floppy"
  197.       }
  198.  
  199.       { /etc/inet/inetd.conf
  200.  
  201.       ReplaceAll "/usr/sbin/in.ftpd" With "/local/iu/sbin/tcpd"
  202.       ReplaceAll "/usr/sbin/in.telnetd" With "/local/iu/sbin/tcpd"
  203.       ReplaceAll "/usr/sbin/in.rshd" With "/local/iu/sbin/tcpd"
  204.       ReplaceAll "/usr/sbin/in.rlogind" With "/local/iu/sbin/tcpd"
  205.       HashCommentLinesContaining "rwall"
  206.       HashCommentLinesContaining "/usr/sbin/in.fingerd"
  207.       HashCommentLinesContaining "comsat"
  208.       HashCommentLinesContaining "exec"
  209. #      HashCommentLinesContaining "talk"
  210.       HashCommentLinesContaining "echo"
  211.       HashCommentLinesContaining "discard"
  212.       HashCommentLinesContaining "charge"
  213.       HashCommentLinesContaining "quotas"
  214.       HashCommentLinesContaining "users"
  215.       HashCommentLinesContaining "spray"
  216.       HashCommentLinesContaining "sadmin"
  217.       HashCommentLinesContaining "rstat"
  218.       HashCommentLinesContaining "kcms"
  219.       HashCommentLinesContaining "comsat"
  220.       HashCommentLinesContaining "xaudio"
  221.       HashCommentLinesContaining "uucp"
  222.       }
  223.  
  224.       #
  225.       # A painless way to add an rc.local script to the rc files
  226.       # under solaris without having to fight though inittab
  227.       #
  228. #
  229. #      { /etc/rc3.d/S15nfs.server
  230. #
  231. #      AppendIfNoSuchLine "sh /local/iu/etc/rc.local"
  232. #      }
  233. #
  234.       #
  235.       # umask define when inetd starts is inherited by all subprocesses
  236.       # this makes ftp post files open to the world
  237.  
  238. #      { /etc/rc2.d/S72inetsvc
  239. #
  240. #      PrependIfNoSuchLine "umask 022"
  241. #      }
  242. #
  243.  
  244.  
  245. ############################################################################
  246.  
  247. processes:
  248.  
  249.   #
  250.   # Don't need CDE stuff
  251.   #
  252.  
  253.   "ttdbserverd" signal=kill
  254.  
  255.   "nfsd"      restart /usr/lib/nfs/nfsd   useshell=false
  256.   "mountd"    restart /usr/lib/nfs/mountd useshell=false
  257.   "automount" signal=kill
  258.   "kwmsound"  signal=kill
  259.  
  260.   "xntp"           matches=1 restart "/local/sbin/xntpd"          useshell=false 
  261.  
  262. ###
  263. #
  264. # END cf.solaris
  265. #
  266. ###
  267.  
  268.